<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    html, body{
      height: 100%;
      /* display: flex;  /*移动端手机宽度*/
      /* flex-direction: column; 列 */
    }
    .content{
      /* height: 100%; */
      background-color: pink;
      height: 100vh;
      /* flex: 1; */
    }
  </style>
</head>
<body>
  <!-- 一个高度自适应的div -->
  <div class="content">
   
  </div>
</body>
</html>